package cz.muni.fi.pb138;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@WebListener
public class Main implements ServletContextListener{

    final static Logger log = LoggerFactory.getLogger(Main.class);

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        log.info("Application initialized");

        ServletContext servletContext = servletContextEvent.getServletContext();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        log.info("Application exit");
    }
}
